/*
 * 小米商城
 * @author cy on 2018/8/27
 * */
body{
    background-color: white;
}
.header{
    width: 100%;
    height: 120px;
    background: url('../images/mi/bg01.jpg') no-repeat;
    background-position: center 0;
}
/**************************************导航开始**********************************/
.nav{
    width: 100%;
    height: 40px;
    background-color: #333;
}
.wrapper{
    position: relative;
    width: 1226px;
    margin: 0 auto;
}
.nav .left{
    width: 492px;
    height: 40px;
    float: left;

}
.nav .left ul li{
    float: left;
    line-height: 40px;
    overflow: hidden;
}
.nav .left ul li a{
    color: #b0b0b0;
    font-size: 12px;
}
.nav .left ul li a:hover{
    color: white;
}
.nav .left ul li a:not(.last):after{
    content: '|';
    color: #424242;
    margin: 0 .5em;
    font-size: 12px;
}
.nav .right{
    width: 280px;
    height: 40px;
    float: right;
}
.nav .right ul li{
    float: left;
    line-height: 40px;
    overflow: hidden;
}
.nav .right ul li:last-child{
    width: 120px;
    margin-left: 33px;
    overflow: hidden;
    background-color: #424242;
    height: 40px;
    text-align: center;
    line-height: 40px;
}
.nav .right ul li:last-child:hover{
    background-color: #fff;
}
.nav .right ul li a{
    color: #b0b0b0;
    font-size: 12px;
}
.nav .right ul li a:hover{
    color: #fff;
}
.nav .right ul li:last-child a{
    color: #fff;
}
.nav .right ul li:last-child:hover a{
    color: #ff6700;
}
.nav .right ul li a span{
    color: #424242;
    margin: 0 .5em;
    font-size: 12px;
}
.shop:hover .shop-hidden{
    height: 100px;
}
.shop-hidden{
    position: absolute;
    top:40px;
    width: 300px;
    height: 0px;
    overflow:hidden;
    line-height: 100px;
    right: 0;
    background-color: white;
    z-index: 999;
    transition: all .3s linear;
}
/**************************************导航结束**********************************/
/**************************************主体内容开始**********************************/
.home-header{
    width: 100%;
    height: 100px;
    line-height: 100px;
    position: relative;
}
.home-logo{
    float: left;
    width: 62px;
    height: 55px;
    margin-top: 22px;
    margin-right: 10px;
    background: url("../images/mi/logo-footer.png") no-repeat;
}
.home-nav{
    float: left;
    height: 100px;
}
.home-nav li{
    float: left;
    height: 88px;
    padding: 1px 7px;
}
/*.home-nav li:first-child有问题*/
.kx{
    width: 163px;
    height: 100px;
    margin-top:20px ;
    background: url("../images/mi/logo.gif") no-repeat;
}
.home-nav li a{
    color: #333;
    font-size: 16px;
}
.home-nav ul li:hover a{
    color: #ff6700;
}
.home-nav ul li .nav-hidden{
    position: absolute;
    top:100px;
    left: 0;
    width: 1226px;
    height: 200px;
    border-top: 1px solid #e0e0e0;
    background-color: white;
    z-index: 411;
    display: none;
}
.nav-hidden li{
    width: 204px;
    height: 200px;
    position: absolute;
    top:0;
}
.nav-hidden .a{
    left: 0;
}
.nav-hidden .b{
    left: 200px;
}
.nav-hidden .c{
    left: 400px;
}
.nav-hidden .d{
    right: 400px;
}
.nav-hidden .e{
    right: 200px;
}
.nav-hidden .f{
    right: 0;
}
.home-nav ul li:hover .nav-hidden{
    display: block;
}
.title{
    position: absolute;
    width: 200px;
    height: 30px;
    line-height: 30px;
    top:0;
    font-size: 12px;
    color: #ff6700;
}
.img{
    position: absolute;
    top:30px;
    left: 30px;
    width: 150px;
    height: 110px;
    background-size: cover;
    background-repeat: no-repeat;
}
.name{
    position: absolute;
    top:105px;
    width: 200px;
    font-size: 12px;
}
.price{
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 30px;
    line-height: 30px;
    padding: 10px 0;
    color: #ff6700;
}
.home-search{
    position: relative;
    float: right;
    width: 296px;
    height: 50px;
    line-height: 50px;
    margin-top: 25px;
    text-align: left;
}
.home-search input{
    position: absolute;
    top:0;
    left: 0;
    width:245px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-right: none;
    box-sizing: border-box;
    outline: none;
}
.home-search input:focus{
    border-color: #ff6700;
}
.home-search input:focus+button{
    border-color: #ff6700;
}
.home-search input:focus~.ph a{
    display: none;
}
.home-search button{
    position: absolute;
    top:0;
    right: 0;
    width: 52px;
    height: 50px;
    font-size: 20px;
    color: #616161;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    background-color: white;
    outline: none;
}
.home-search button:hover{
    background-color: #ff6700;
}
.ph{
    height: 21px;
    line-height: 21px;
}
.ph a{
    font-size: 12px;
    position: absolute;
    color: #757575;
    background-color: #eee;
}
.ph a:hover{
    background-color: #ff6700;
}
.ph a:first-child{
    top:15px;
    left: 110px;
}
.ph a:nth-child(2){
    top:15px;
    right: 65px;
}

.search-list{
    position: absolute;
    top:100%;
    left: 0;
    width: 243px;
    height: 300px;
    border: 1px solid #ff6700;
    border-top:none ;
    background-color: white;
    display: none;
    z-index: 111;
}
.search-list ul li{
    width: 243px;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    padding-left: 15px;
    cursor: pointer;
}
.search-list ul li span{
    float: right;
    margin-right: 35px;
    color: rgba(0,0,0,.3);
}
.home-search input:focus~.search-list{
    display: block;
}

/**************************************轮播图********************************************/
.carousel{
    position: relative;
    width: 1226px;
    height: 460px;
    background-image: url("../images/mi/bg1.jpg");
    background-size: 100% 100%;
    animation: change 10s linear infinite;
}
@keyframes change {
    0%{
        background-image: url("../images/mi/bg1.jpg");
    }
    25%{
        background-image: url("../images/mi/bg2.jpg");
    }
    50%{
        background-image: url("../images/mi/bg3.jpg");
    }
    75%{
        background-image: url("../images/mi/bg4.jpg");
    }
    100%{
        background-image: url("../images/mi/bg5.jpg");
    }

}

.slide-box{
    position: absolute;
    top:0;
    left: 0;
    width: 234px;
    height: 460px;
    background-color: rgba(0,0,0,.6);
    padding: 20px 0;
    box-sizing: border-box;
    text-align: left;
}

.slide-box ul li{
    padding-left:30px ;
    width: 234px;
    height: 42px;
    line-height: 42px;
    box-sizing: border-box;
}
.slide-box ul li:hover{
    background-color: #ff6700;
}
.slide-box ul li:hover .slide-hidden{
    display: block;
}
.slide-box ul li a{
    color: #fff;
}
.slide-box ul li a i{
    float: right;
    padding-right: 30px;
}
.slide-hidden{
    width: 992px;
    height: 460px;
    background-color: white;
    position: absolute;
    top:0;
    left: 234px;
    display: none;
}
.slide-hidden>ul>li{
    position: relative;
    width:248px;
    height:460px;
    float: left;
    text-align: left;
    padding: 5px 0;
}
.slide-hidden>ul>li>ol>li{
    width: 248px;
    height: 75px;
    line-height: 75px;
}
.slide-hidden.one{
    width: 248px;
}
.slide-hidden.two{
    width: 496px;
}
.slide-hidden.three{
    width: 744px;
}

/*箭头*/
.carousel .left,.carousel .right{
    position: absolute;
    top:50%;
    margin-top: -34.5px;
    width: 41px;
    height: 69px;
    background-image: url("../images/mi/icon-slides.png");
}
.carousel .left{
    left: 234px;
    background-position-x:83px ;
}
.carousel .left:hover{
    background-position-x:0 ;
}
.carousel .right{
    right: 0;
    background-position-x:41px ;
}
.carousel .right:hover{
    background-position-x:124px ;
}
/*******************************************轮播结束*************************************/
/*******************************************广告开始*************************************/
.ad{
    height: 170px;
    margin-top: 14px;
}
.ad>ul{
    float: left;
    width: 234px;
    height: 170px;
    background-color: #5f5750;
}
.ad>ul>li{
    float: left;
    width: 76px;
    /*height: 82px;这里不设置高才能撑开padding*/
    padding: 18px 0;
}
 .container .ad>ul>li:hover .iconfont{
    color: white;
}
.container .ad>ul>li:hover a>span{
    color: white;
}
.ad>ul>li>a>span{
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.ad>ul>li>a>p{
    font-size: 28px;
    color: rgba(255,255,255,0.7);
}
.ad>img{
    width: 316px;
    float: left;
    margin-left: 14px;
}
/************************************************广告结束***********************************/
/************************************************小米闪购***********************************/
.flash{
    width: 1226px;
}
.common-title{
    position: static;
    font-size: 22px;
    text-align: left;
    width: 100%;
    height: 58px;
    line-height: 58px;
    padding-top: 20px;
    font-weight: 200;
}
.content{
    width: 100%;
    height: 340px;
}
.content>ul>li{
    position: relative;
    width: 234px;
    height: 340px;
    margin-left:14px;
    background-color: rgba(0,0,0,0.02);
    float: left;
}
.content>ul>li:first-child{
    margin-left: 0;
    background-color: #f1eded;
}
.content{
    width: 1226px;
    height: 340px;
}
.flash>.content>ul>li:nth-child(2){
    border-top: 1px solid #ffac13;
}
.flash>.content>ul>li:nth-child(3){
    border-top: 1px solid #83c44e;
}
.flash>.content>ul>li:nth-child(4){
    border-top: 1px solid #2196f3;
}
.flash>.content>ul>li:nth-child(5){
    border-top: 1px solid #ffac13;
}
.ad-img{
    width: 1226px;
    margin: 40px 0;
}

.flash-pic p:first-child{
    border-top:1px solid #ff6700 ;
    font-size: 21px;
    color: #ef3a3b;
    padding-top: 45px;
}
.content .flash-pic>img{
    width: 34px;
    margin: 25px 0;
}
.flash-pic p:last-child{
    padding-top: 25px;
    font-size: 15px;
    color: rgba(0,0,0,0.54);
}
.common:not(.common-last){
    position: relative;
    overflow: hidden;
}
.common>div{
    position: absolute;
    width: 64px;
    height: 20px;
    background-color: #e53935;
    color: #fff;
    font-size: 12px;
    top:0;
    left: 50%;
    margin-left: -32px;
    text-align: center;
}
.common img{
    position: absolute;
    width: 160px;
    bottom: 115px;
    left: 50%;
    margin-left: -80px;
}
.common .flash-name{
    position: absolute;
    left: 0;
    width: 234px;
    text-align: center;
    bottom: 80px;
    color: #212121;
}
.common .flash-des{
    position: absolute;
    width: 234px;
    text-align: center;
    bottom: 55px;
    color: #b0b0b0;
    font-size: 12px;
}
.common .flash-price{
    position: absolute;
    width: 234px;
    text-align: center;
    bottom: 25px;
    color: #ff6700;
}
.common .flash-price>del{
    font-size: 12px;
    color: #b0b0b0;
}

/*************************************************手机部分开始*****************************/
.phone{
    background-color: #f5f5f5;
    width: 100%;
    overflow: hidden;
}
.mobile-left{
    width: 234px;
    height: 614px;
    float: left;
    transition: all .3s;
}
.mobile-left:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 15px ;
}
.mobile-left img{
    width: 100%;
}
.mobile-right{
    width: 992px;
    height: 614px;
    float: left;
}
.mobile-right>ul>li{
    width: 234px;
    height: 300px;
    float: left;
    margin-bottom: 14px;
    margin-left: 14px;
    background-color: white;
    transition: all .3s;
}
.mobile-right>ul>li:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,.3);
}
.mobile-right>ul>comment>img{

}
/**********************************************家电开始************************************/
.jiadian{
    background-color: #f5f5f5;
}
.jd-ul{
    width: 1226px;
    height: 614px;
}
.jd-ul>li{
    width: 234px;
    height: 300px;
    background-color: white;
    margin-bottom: 14px;
    margin-right: 14px;
    float: left;
    transition: all .3s linear;
}
.jd-ul>li:not(.common-last):hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
}
.jd-ul>li:hover>.jd-hidden{
    top:220px;
}
.jd-ul>li:nth-child(5n){
    margin-right: 0;
}
.jd-ul>li:first-child>img,.jd-ul>li:nth-child(6)>img{
    width: 234px;
}
.jd-ul>li:nth-child(4)>div,.jd-ul>li:nth-child(9)>div{
    background-color: #82ff29;
}
.jd-hidden{
    position: absolute;
    top:100%;
    left: 0;
    width: 234px;
    height: 80px;
    background-color: #ff6700;
    font-size: 12px;
    padding: 8px 30px;
    color: white;
    transition: all .3s;
}
.jd-hidden span{
    display: block;
    width: 174px;
    text-align: left;
}
.author{
    color: rgba(255,255,255,.6);
    padding-top:10px ;
    text-align: left;
    font-size: 12px;
}
.jiadian .common-last{
    position: relative;
    width: 234px;
    height: 300px;
    background-color:#f5f5f5 ;
}
.common-last>.top{
    position: absolute;
    left: 0;
    top:0;
    margin-left: 0;
    width: 100%;
    height: 143px;
    background-color: white;
}
.common-last>.top>a{
    position: absolute;
    top:40px;
    color: #333;
    left: 30px;
    font-size: 14px;
}
.common-last>.top>.flash-price{
    position: absolute;
    top:70px;
    left: 30px;
    font-size: 14px;
    text-align: left;
}
.common-last>.top>img{
    width: 80px;
    position: absolute;
    top:25px;
    left: 215px;
}
.common-last>div:hover{
    box-shadow: 0 15px 30px rgba(0,0,0,.3);
    transform: translateY(-2px);
}
.common-last>.bottom{
    position: absolute;
    left: 0;
    /*这里top,left与bottom,right同时写，无论优先级如何，先top和left*/
    top:157px;
    margin-left: 0;
    width: 234px;
    height: 143px;
    background-color: white;
    transition: all .3s;
}
.common-last>.bottom p:first-child{
    font-size: 18px;
    color: #333;
    width: 120px;
    height: 30px;
    line-height: 30px;
    margin-top: 30px;
    transition: all .3s;
}
.common-last>.bottom p:nth-child(2){
    width: 70px;
    height: 20px;
    color: #757575;
}
.common-last>.bottom i{
    float: left;
    font-size: 48px;
    color: #ff6700;
    font-weight: 700;
    margin-left: 140px;
    margin-top: -55px;
}

/****************************************************智能家居*********************************/
.smart{
    background-color: #f5f5f5;
    width: 100%;
    overflow: hidden;
}
.smart-ul{
    float: right;
}
.smart-ul li{
    float: left;
}
.smart-ul li a{
    color: #424242;
    font-weight: normal;
    font-size: 16px;
    margin-left: 30px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .5s;
}
.smart-ul li:hover>a{
    border-bottom-color: #ff6700;
    color: #ff6700;
}
/************************************************************为您推荐*************************/
.jd-ul>li:first-child>.suggest{
    width: 160px;
}
.suggest-ul>li{
    margin-bottom: 0;
}
.suggest-ul{
    height: 300px;
}
/**************************************************************************热评产品********/
.hot{
    width: 100%;
    background-color: #f5f5f5;
    height: 500px;
}
.hot ul li{
    width: 296px;
    height: 415px;
    float: left;
    margin-left: 13px;
    background-color: white;
    position: relative;
    transition: all .3s;
}
.hot ul li:hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,.3);
}
.hot ul li img{
    width: 100%;
}
.hot ul li:first-child{
    margin-left: 0;
}
.hot ul li .review{
    color: #333;
    width: 240px;
    margin:  20px auto;

}
.hot ul li .author{
    color: #333;
    width: 240px;
    margin:0px auto;

}
.info{
    width: 240px;
    margin: 10px auto 0;
}
.info span:first-child{
    display: block;
    width: 170px;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
}

.info .price{
    position: absolute;
    top:338px;
    left: 160px;
    color: #ff6700;
}
.info .price:before{
    content: '|';
    color: #e0e0e0;
    font-size: 16px;
    font-weight: bold;
    margin: 0 3px;
}

/***************************内容开始*****************************/
.hot-content{
    width: 100%;
    background-color: #f5f5f5;
    padding-bottom: 5px;
    height: 530px;
}
.hot-content ul>li{
    width: 296px;
    height: 420px;
    background-color: white;
    float: left;
    margin-left: 13px;
    transition: all .3s;
}
.hot-content ul>li:hover{
    transform: translateY(-4px);
    box-shadow: 0 15px 20px rgba(0,0,0,.3);
}

.hot-content ul>li:first-child{
    margin-left: 0;
    border-top: 1px solid #ff6700;
    color: #ff6700;
}
.hot-content ul>li:nth-child(2){
    border-top: 1px solid #82ff29;
    color: #82ff29;
}
.hot-content ul>li:nth-child(3){
    border-top: 1px solid #e53935;
    color:#e53935;
}
.hot-content ul>li:nth-child(4){
    border-top: 1px solid #2196f3;
    color: #2196f3;
}


.content-title{
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin-top: 30px;
}

.content-name{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: #333;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    margin-top: 20px;
}
.content-desc{
    color: #b0b0b0;
    width: 200px;
    margin: 0 auto;
    height: 40px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    overflow: hidden;
    margin-top: 10px;
}
.content-price{
    color: #333;
    text-align: center;
    margin: 15px;
}
.hot-content ul>li img{
    width: 216px;
}
/*****************************************视屏部分********************************************/
.video{
    width: 100%;
    background-color: #f5f5f5;
    overflow: hidden;
    padding-bottom: 40px;
}
.video ul>li{
    width: 296px;
    height: 285px;
    background-color: white;
    float: left;
    margin-left: 13px;
    position: relative;
    transition: all .3s linear;
}
.video ul>li:hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,.4);
}
.video ul>li:hover .play{
    background-color: #ff6700;
    border-color: #ff6700;
}
.video ul>li img{
    width: 296px;
}
.video ul>li:first-child{
    margin-left: 0;
}
.video-name{
    display: inline-block;
    margin-top: 30px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}
.video-name:hover{
    color: #ff6700;
}
.video-desc{
    margin-top: 10px;
    color: #b0b0b0;
    font-size: 12px;
}
.play{
    position: absolute;
    top:148px;
    left: 20px;
    display: block;
    width: 35px;
    height: 20px;
    border: 2px solid white;
    background-color: rgba(0,0,0,.4);
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    transition: all .3s linear;
}
.video ul li>.iconfont{
    color: white;
    position: absolute;
    top:152px;
    left: 29px;
    cursor: pointer;
}
.footer{
    width: 100%;
    margin-top: 20px;
}
.footer .top{
    width: 100%;
    height: 80px;
    border-bottom: 1px solid #e0e0e0;
}
.footer .top ul li{
    float: left;
    width: 240px;
    height: 25px;
    margin: 32.5px 0;
    border-right: 1px solid #e0e0e0;
}
.footer .top ul li:last-child{
    border-right: none;
}
.footer .top ul li a{
    font-size: 16px;
    color: #616161;
}
.footer .top ul li a i{
    font-size: 20px;
    font-weight: 600;
}
.footer .center{
    width: 100%;
    height: 192px;
}
.footer .center ul{
    float: left;
    width: 160px;
    height: 112px;
    text-align: left;
    margin-top: 5px;
}
.footer .center ul li{
    margin-top: 10px;
}
.footer .center ul:nth-child(6){
    padding-right: 3px;
    border-right: solid 1px #e0e0e0;
}
.foot_ul a{
    color: #757575;
    font-size: 12px;
}
.foot_ul a:not(.footer_title):hover{
    color: #ff6700;
}
.foot_ul .footer_title{
    display: inline-block;
    color: #424242;
    padding-bottom: 10px;
    font-size: 14px;
}
.contact{
    width: 252px;
    height: 112px;
    float: right;
    margin-top: 13px;
    margin-bottom: 5px;
}
.foot-phone{
    color: #ff6700;
    font-size: 22px;
    margin-bottom: 2px;
}
.foot-time,.foot-type{
    font-size: 12px;
}
.service{
    margin-top: 15px;
    display:inline-block;
    width: 118px;
    height: 28px;
    border: 1px solid #ff6700;
    background-color: white;
    color: #ff6700;
}
.footer .bottom{
    width: 100%;
}
.footer .bottom .left{
    float: left;
}
.footer .bottom .main{
    float: left;
    width:689px ;
    height: 57px;
    margin-left: 3px;
}
.main-top ul li{
    float: left;
}
.main-top ul li a{
    color: #757575;
    font-size: 12px;
}
.main-top ul li:not(.abc):after{
    content: '|';
    color: #757575;
    font-size: 12px;
    margin: 0 5px;
}
.main-bottom{
    text-align: left;
    font-size: 12px;
    color: #e0e0e0;

    margin-top: 25px;
    line-height: 17px;
}
.footer .bottom .right{
    float: right;
    width: 442px;
    height: 28px;
}
.footer .bottom .right img{
    width: 85px;
}
/*主体部分结束*/
.cbl{
    width: 30px;
    height: 100px;
    background-color: white;
    position: fixed;
    right: 31px;
    bottom: 100px;
}
.cbl a{
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    border-bottom: solid 1px #e0e0e0;
    color: #757575;
    padding: 5px 0;
    cursor: pointer;
    transition: all .2s;
}
.cbl a:hover{
    color: #ff6700;
}
.back-top{
    margin-top: 30px;
}